| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | import { | 
            ||
| 16 | |||
| 17 | @Controller('settings') | 
            ||
| 18 | @ApiTags('Settings') | 
            ||
| 19 | @ApiBearerAuth()  | 
            ||
| 20 | @UseGuards(AuthGuard('bearer'), RolesGuard) | 
            ||
| 21 | export class GetCooperativeAction { | 
            ||
| 22 | constructor(  | 
            ||
| 23 |     @Inject('IQueryBus') | 
            ||
| 24 | private readonly queryBus: IQueryBus  | 
            ||
| 25 |   ) {} | 
            ||
| 26 | |||
| 27 |   @Get('cooperative') | 
            ||
| 28 | @Roles(UserRole.COOPERATOR, UserRole.EMPLOYEE)  | 
            ||
| 29 |   @ApiOperation({ summary: 'Get cooperative settings' }) | 
            ||
| 30 |   public async index(): Promise<CooperativeView> { | 
            ||
| 31 |     try { | 
            ||
| 32 | return await this.queryBus.execute(new GetCooperativeQuery());  | 
            ||
| 33 |     } catch (e) { | 
            ||
| 34 | throw new NotFoundException(e.message);  | 
            ||
| 35 | }  | 
            ||
| 38 |